<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>{$title}</title>
<link href="__PUBLIC__/css/admin.css" rel="stylesheet" type="text/css">
<style>
.jjzk{ width:980px; height:auto; overflow:hidden; margin:30px auto;}
.jjzk form p input{ border:1px solid #ccc; width:450px; height:40px; text-indent:2em; font-size:18px;}
.jjzk form p{ font-size:18px; line-height:36px; color:#0089e1; margin-bottom:15px;}
.jjzk form p textarea{resize: none; width:420px; height:100px; border:1px solid #ccc; padding:15px;}
.jjzk form input.button{background: #43a1da none repeat scroll 0 0;border: 1px solid #4ba6db; border-radius: 5px;color: #fff;cursor: pointer; height: 30px; margin: 5px 5px 5px 0; width: 100px;}
.jjzk form p select{ border:1px solid #ccc;}
</style>
</head>

<body>
<div class="head">
	<img src="__PUBLIC__/images/kg.jpg" class="fl"/>
    <form method="post" class="fl">
    	<input name="search" type="text" class="search fl" placeholder="请输入你想要搜索的信息">
        <input type="submit" name="submit" value="智搜一下" class="submit">
    </form>
    <p class="fr">姓名</p>
</div>
<div class="bmss">
	<div class="bmss1">
    	<p><a href="#">疾病百科</a><a href="#">咨询智库</a><a href="#">竞价智库</a><a href="#">策划智库</a></p>
    </div>
</div>
<div class="jjzk">
	<form>
    	<p>关键词：<input type="text" placeholder="请填写关键词" class="keyname"/></p>
        <p>标签：<input type="text" placeholder="请填写标签" class="label"/></p>
        <p>病种：<select>
                    <volist id="vo" name="list">
                    <option value="{$vo.level}" >{$vo.bzname}</option>
                    </volist>
        		</select></p>
         <p>创意标题：<input type="text" placeholder="请填写创意标题" class="cybt"/></p>
         <p>创意描述1：<textarea class="cyms1"></textarea></p>
         <p>创意描述2：<textarea class="cyms2"></textarea></p>
         <p>相关着陆页：</p>
         <p>PC网址1：<input type="text" placeholder="请填写网址"  class="pchttp1"/></p>
         <p>PC网址2：<input type="text" placeholder="请填写网址"  class="pchttp2"/></p>
         <p>PC网址3：<input type="text" placeholder="请填写网址"  class="pchttp3"/></p>
         <p>移动网址3：<input type="text" placeholder="请填写网址"  class="sjhttp1"/></p>
         <p>移动网址3：<input type="text" placeholder="请填写网址"  class="sjhttp2"/></p>
         <p>移动网址3：<input type="text" placeholder="请填写网址"  class="sjhttp3"/></p>
        <input type="button" name="sumit" value="提交" id="sumit" class="button"/>
    </form>
</div>
</body>
</html>
<script type="text/javascript" src="__PUBLIC__/js/jquery/jquery.min.js"></script>
<script type="text/javascript" src="__PUBLIC__/js/jquery/jquery.cookie.js"></script>
<script>
$(function(){
	var name =	$.cookie('name');
	$(".head p").html(name);
	$("form select option").each(function() {
        var length=$(this).val().split(",").length;
		var jl=length*20+'px';
		$(this).css("text-indent",jl);
    });
	$("#sumit").click(function(){
		var keyname=$("form p input.keyname").val();
		var label=$("form p input.label").val();
		var bzname=$("form select option:selected").html();
		var cytitle=$("form p input.cybt").val();
		var cyms1=$("form p textarea.cyms1").val();
		var cyms2=$("form p textarea.cyms2").val();
		var pchttp1=$("form p input.pchttp1").val();
		var pchttp2=$("form p input.pchttp2").val();
		var pchttp3=$("form p input.pchttp3").val();
		var sjhttp1=$("form p input.sjhttp1").val();
		var sjhttp2=$("form p input.sjhttp2").val();
		var sjhttp3=$("form p input.sjhttp3").val();
		$.ajax({
			type:'POST',
			url:"__URL__/ctadd",
			data:{name:name,keyname:keyname,label:label,bzname:bzname,cyms1:cyms1,cyms2:cyms2,pchttp1:pchttp1,pchttp2:pchttp2,pchttp3:pchttp3,sjhttp1:sjhttp1,sjhttp2:sjhttp2,sjhttp3:sjhttp3,cytitle:cytitle},
			success: function(data){
				top.location.reload();
			}
		});
	});
})
</script>